<ui:composition template="../index/index.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="content">
		<h:form>

			<p:fieldset legend="Edição de Preço">
				<h:panelGrid columns="1" cellpadding="10">

					<p:row>
						<h:inputHidden value="#{tabelaBean.valor.id}" />
						<h:inputHidden value="#{tabelaBean.colunaId}" />
						<h:outputText
							value="Plano de Saúde: #{tabelaBean.valor.coluna.planoSaude.nome}" />
					</p:row>
					<p:row>
						<h:inputHidden value="#{tabelaBean.itemTabelaId}" />
						<h:outputText
							value="Serviço: #{tabelaBean.valor.itemTabela.procedimento.nome}" />
					</p:row>
					<p:row>
						<h:outputLabel value="Preço: " for="preco" />
						<h:inputText id="preco" label="preco"
							value="#{tabelaBean.valor.valor}" />
					</p:row>
					<p:row>
						<h:commandButton action="#{tabelaBean.saveValor}" value="Salvar" />
						<h:commandButton action="tabela.xhtml" value="Cancelar" />
					</p:row>
				</h:panelGrid>
			</p:fieldset>
		</h:form>
	</ui:define>
</ui:composition>